package com.example.demo.beans;

import com.example.demo.user.UserInfo;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-10-20
 * Time:16:28
 */
@RestController
public class loginController {

//    @RequestMapping("/user/login3")
//    public HashMap<String,Object> Login(@RequestBody UserInfo userInfo){
//        HashMap<String,Object> ret=new HashMap<>();
//        int state=200;
//        int data=-1;
//        String msg="未知错误";
//        if(StringUtils.hasLength(userInfo.getUsername())&&StringUtils.hasLength(userInfo.getPassword())){
//            if(userInfo.getUsername().equals("admin")&&userInfo.getPassword().equals("admin")){
//
//        }
//    }
}
